]> dgit.raspbian.org Git - gnome-shell.git/commit
unlockDialog: Properly reset auth prompt when showing it
authorRay Strode <rstrode@redhat.com>
Tue, 5 Oct 2021 15:01:19 +0000 (11:01 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 8 Oct 2021 15:56:23 +0000 (11:56 -0400)
commitceee53aa0a40f3bf81945fabb4ecdd70d11143a4
tree1cb69c3fc2efc12430c8adfe9a8d4e002024fe41
parent5d5bfe492cd81a081e80660761bac137d38133bd
unlockDialog: Properly reset auth prompt when showing it

If a user hits escape twice really fast when coming back to
their machine to unlock it, they made end up getting presented
with a non-functional unlock screen that doesn't show their
user icon and doesn't ask for a password.

This is because showPrompt assumes that if an auth prompt already
exists, it's ready to go. That may not be true, if it's in the
process of getting torn down at the time because it's in the middle
of a cancel animation.

This commit solves the problem by ensuring the auth prompt is always
in a fresh reset state before showing it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1999>
js/ui/unlockDialog.js